Ahk script and C++ communication [closed]

Posted by Tony on Programmers See other posts from Programmers or by Tony
Published on 2011-03-05T02:33:11Z Indexed on 2011/03/05 7:31 UTC
Read the original article Hit count: 589

Filed under:
|

I wish to use the fuctions of autohotkey within a C++ program. I am currently running my scripts triggered by the c++ program- I just run them as a .bat file. This works well but the problem is that I cannot return values from the script to the c++ program.

I wish to be able to read the position of the mouse from the script and make decisions based upon this in my C++ program. My scripts do quite complex things- so doing this in autohotkey is the best solution for me- I have knowledge of C, but little of C++.

I have read about the Autohotkey .DLL - I know how to trigger it but not how to read values from it. If anyone could instruct me or even post example code of a .dll being loaded and a value sent to a script and a value returned- I would be eternally grateful!!

I have spent hours on this and to no avail!!

© Programmers or respective owner

Related posts about c++

Related posts about autohotkey